/**
 * 
 */
package com.hanhai.common.util;

import java.util.HashMap;
import java.util.Map;

import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;

/**
 * 
 * @author leiruiqi@hanhai.com
 */
public class JianZhouSMS {
	public static String contentType = "application/x-www-form-urlencoded;charset=UTF-8";
	public static String url = "http://www.jianzhou.sh.cn/JianzhouSMSWSServer/http/sendBatchMessage";
	public static String acccount = "jzyy500";
	public static String password = "yangmin";
	public static String sign;

	public static void main(String[] args) {
		String destmobile = "18971326300";
		String msgText = "小雷,你好";
		//String body = jianZhouSMS(destmobile, msgText);
		//System.out.println(body);
	}

	static {
		url = "http://www.jianzhou.sh.cn/JianzhouSMSWSServer/http/sendBatchMessage";
		contentType = "application/x-www-form-urlencoded;charset=UTF-8";
		acccount = "jzyy500";
		password = "yangmin";
		sign = "【招融宝】";
	}

	/*public static String jianZhouSMS(String destmobile, String msgText) {
		msgText += sign;
		Map<String, String> queryMap = new HashMap<String, String>();
		queryMap.put("account", acccount);
		queryMap.put("password", password);
		queryMap.put("destmobile", destmobile);
		queryMap.put("msgText", msgText);
		HttpResponse response = HttpRequest.post(url).contentType(contentType)
				.query(queryMap).send();
		System.out.println(response);
		// body是返回值
		String body = response.bodyText();

		return body;
	}*/

}
